#!/bin/bash
# Author: Redbrother
# Email: 728083668@qq.com
# WebSite: https://help.ubuntu.com/community/LiveCDCustomizationFromScratch
# license: None
set -e
#自定义版本项
############################################
# 重新配置网络
cd squashfs-root
#rm -f etc/resolv.conf
chroot . apt clean
chroot . apt-clean
chroot . rm -rf tmp/*
chroot . rm -f network-manager*.deb
chroot . rm -f *.deb
chroot . rm -f vmlinu*  initrd.im*
chroot . rm -f /var/lib/dbus/machine-id
chroot . rm -f /sbin/initctl
chroot . dpkg-divert --rename --remove /sbin/initctl
umount -lf sys/
umount -lf proc/
umount -lf dev/pts/
umount -lf dev/
cd ..

	echo "umount successfully done"






